package com.neuedu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.neuedu.core.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 用户答题统计表
 * </p>
 *
 * @author wangyu
 * @since 2025-09-17
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_answer")
public class UserAnswer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 答题总数
     */
    private Integer total;

    /**
     * 正确数量
     */
    private Integer correctCount;

    /**
     * 正确率
     */
    private BigDecimal accuracy;

    /**
     * 日期
     */
    private LocalDate createDate;

    /**
     * 时间
     */
    private LocalTime createTime;

    /**
     * 刷题列表
     * */
    private String items;
}
